package com.itkk;

public class Teacher{
    private String id;
    private String name;
    private String sex;
    private String age;
    private String courseTaught;

    public Teacher(String id, String name, String sex, String age, String courseTaught) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.courseTaught = courseTaught;
    }

    public Teacher() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getCourseTaught() {
        return courseTaught;
    }

    public void setCourseTaught(String courseTaught) {
        this.courseTaught = courseTaught;
    }

    public void classTeacher(){
        System.out.println("老师"+name+"正在授课");
    }
}
